<?php
/**
* @package Joomla.Tutorials
* @subpackage Components
* @link http://dev.joomla.org/component/option,com_jdwiki/
Itemid,31/id,tutorials:modules/
* @license GNU/GPL
*/
// no direct access
defined( '_JEXEC' ) or die( 'Restricted access' );
jimport('joomla.application.component.controller');
/**
* Hello World Component Controller
*
* @package Joomla.Tutorials
* @subpackage Components
*/
class HellosController extends JController
{
	/**
	* Method to display the view
	*
	* @access public
	*/
	function display()
	{
		parent::display();
	}
	
	/**

	* constructor (registers additional tasks to methods)
	* @return void
	*/
	function __construct()
	{
		parent::__construct();
		// Register Extra tasks
		$this->registerTask( 'add' , 'edit' );
	}
	
	/**
	* display the edit form
	* @return void
	*/
	function edit() {
		JRequest::setVar( 'view', 'hello' );
		JRequest::setVar( 'layout', 'form' );
		JRequest::setVar('hidemainmenu', 1);
		parent::display();
	}


}
?>